package com.project.service;

import com.project.entity.OrgInfo;

import java.util.List;

/**
 * @Author: TateBrown
 * @date: 2018/5/26 14:38
 * @param:
 * @return:
 */
public interface OrgInfoService {
    /**
     * author: WheelChen
     * date: 2017-4-25
     * function: 添加公司信息
     *
     * @param orgInfo
     * @return
     */
    int addOrgInfo(OrgInfo orgInfo) throws Exception;

    /**
     * author: WheelChen
     * date: 2017/6/26
     * function: 通过id查找公司信息
     *
     * @param id
     * @return
     */
    OrgInfo findByid(Integer id);

    /**
     * author: WheelChen
     * date: 2017-5-22
     * function: 根据managerid修改公司信息
     *
     * @param orgInfo
     * @return
     */
    int modifyByManagerId(OrgInfo orgInfo);

    /**
     * author: WheelChen
     * date: 2017-5-22
     * function: 根据managerid修改公司信息
     *
     * @param orgInfo
     * @return
     */
    int modifyByCreatorId(OrgInfo orgInfo);

    /**
     * author: WheelChen
     * date: 2017-4-25
     * function: 查找所有公司信息
     *
     * @param
     * @return
     */
    List<OrgInfo> findOrgInfoBatch();

    /**
     * author: WheelChen
     * date: 2017-5-15
     * function: 按条件查询公司信息
     *
     * @param orgInfo
     * @return
     */
    List<OrgInfo> findByCondition(OrgInfo orgInfo);

    /**
     * author: WheelChen
     * date: 2017-5-21
     * function: 按managerid查询公司信息
     *
     * @param managerid
     * @return
     */
    OrgInfo findByManagerId(Integer managerid);

    /**
     * author: WheelChen
     * date: 2017/6/26
     * function: 根据id修改
     *
     * @param orgInfo
     * @return
     */
    int modifyById(OrgInfo orgInfo) throws Exception;

    /**
     * author: WheelChen
     * date: 2017/7/31
     * function: 查询所有公司信息
     *
     * @param
     * @return
     */
    List<OrgInfo> findAll();

}
